<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<html>
<head></head>
<body style="width: 2000px;">
<script type="text/javascript">

var imagesDialogs;
function toUploadImages(LunBoNum){
	imagesDialogs = Kit.dialog("轮播图片","${BASE_PATH}/bus/goods/store/imageIndex/${goods.LunBoNum}",{closable:true,size:"size-wide"}).open();
}
//详情图片
var imagesXiang;
function toXiang(){
	imagesXiang = Kit.dialog("详情图片","${BASE_PATH}/bus/goods/store/imageDetailIndex/${goods.LunBoNum}",{closable:true,size:"size-wide"}).open();
}

</script> 
<form id="addForm"   class="form-horizontal" enctype="multipart/form-data" style="">
	
	<div class="form-group"  style="margin-left: 20px">
		<label class=" control-label" style="margin-left: 50px;font-size: 18px;">商品基本信息</label>
	</div>
	<hr style=" height:2px;border:none;border-top:2px solid black;" />
	<div class="form-group">
	    <label class="col-lg-2 control-label">商品名称</label>
	    <div class="col-lg-9">
        	<input type="text" name="names" id="names" readonly="readonly" class="form-control" value="${goods.name}" required maxlength="20">
        	<input type="text" id="doodsid" name="doodsid" readonly="readonly" hidden="hidden" value="${goods.id }"/>
	    </div>
	</div>
	<div class="form-group">
		<label class="col-sm-2 control-label">商品主图</label>
		<div class="col-sm-10">
			<img src="${FTP_PATH}${goods.thumb}" alt="" style="width:30%;"/>
		</div>
			
	</div>
	<div class="form-group">
	<label class="col-sm-2 control-label">商品轮播图</label>
		<div class="col-sm-10">
			 <input type='button' value='查看轮播图' onclick="toUploadImages('${goods.LunBoNum}');" style="background-color: #428bca;width: 89.81px;height: 32px;color: white;border: 2px solid;background-image: linear-gradient(to bottom,#5bc0de 0,#428bca 100%);"/> 
		</div>
		<div class="col-lg-offset-2 p-t-5 col-lg-9"><span class="text-success"></span></div>
	</div>
	<c:if test="${userid==20 }">
		<div class="form-group">
		    <label class="col-lg-2 control-label">商品货号</label>
		    <div class="col-lg-9">
	        	<input type="text" id="goodsNum"  readonly="readonly" name="goodsNum" class="form-control" value="${goods.goodsNum }">
		    </div>
		</div>
	</c:if>
	<%-- <div class="form-group">
	    <label class="col-lg-2 control-label">商品类目</label>
	    <div class="col-lg-9">
    		<select id="categoryonid" name="categoryonid" disabled="disabled" class="selectpicker" data-width="24%" data-url="${BASE_PATH}/api/category" data-val="${goods.categoryonid }" data-isfirst="true" data-next="#categorytwid" data-key="id:name">
    		</select>
			<select id="categorytwid" name="categorytwid" disabled="disabled" class="selectpicker" data-width="24%" data-url="${BASE_PATH}/api/category/{value}" data-val="${goods.categorytwid} " data-key="id:name">
			</select>			
	    </div>
	</div> --%>
	<div class="form-group">
	    <label class="col-lg-2 control-label"><span style="margin-right:10px; color:red;">*</span>商品类别</label>
	    <div class="col-sm-2">
        	<select name="categoryonid" id="categoryonid" class="form-control" required disabled="disabled">
       			<option value="">一级分类</option>
       			<c:forEach items="${oneCategories}" var="category" varStatus="s">
					<option value="${category.categoryId}" <c:if test="${goods.categoryonid==category.categoryId}">selected</c:if>>${category.categoryName}</option>	
				</c:forEach>
        	</select>
	    </div>
	
	    <div class="col-sm-2">
        	<select name="categorytwid" id="categorytwid" class="form-control" required disabled="disabled">
        		<option value="" 
        		<c:forEach items="${twoCategories}" var="category" varStatus="s">
					<option value="${category.categoryId}" <c:if test="${goods.categorytwid==category.categoryId}">selected</c:if>>${category.categoryName}</option>	
				</c:forEach>
				>二级分类</option>
        	</select>
	    </div>
	
	    <div class="col-sm-2">
		    <select name="categorythid" id="categorythid" class="form-control" required disabled="disabled">
	        	<option value=""
        		<c:forEach items="${threeCategories}" var="category" varStatus="s">
					<option value="${category.categoryId}" <c:if test="${goods.categorythid==category.categoryId}">selected</c:if>>${category.categoryName}</option>	
				</c:forEach>
				>三级分类</option>
	        </select>
	    </div>
	
	    <div class="col-sm-2">
		    <select name="categoryfoid" id="categoryfoid" class="form-control" required disabled="disabled">
	        	<option value=""
        		<c:forEach items="${fourCategories}" var="category" varStatus="s">
					<option value="${category.categoryId}" <c:if test="${goods.categoryfoid==category.categoryId}">selected</c:if>>${category.categoryName}</option>	
				</c:forEach>
				>四级分类</option>
	        </select>
	    </div>
	</div>
	<div class="form-group">
	    <label class="col-lg-2 control-label"><span style="margin-right:10px; color:red;">*</span>市场售价</label>
	    <div class="col-lg-3">
        	<input type="text" name="sellPrice" id="sellPrice" class="form-control" disabled="disabled" value="${goods.sellPrice}" onkeyup="(this.v3=function(){this.value=this.value.replace(/[^0-9-.]+/,'');}).call(this)" onblur="this.v3();" placeholder="请输入商品市场价" />
	    </div>
	</div>
	<div class="form-group">
	<label class="col-lg-2 control-label"><span style="margin-right:10px; color:red;">*</span>商品标签</label>
		<div class="col-lg-9">
			<input type="text" class="form-control" disabled="disabled" value="${lableName}" />
		</div>
	</div>
	<!-- 是否团购 -->
	<%-- <div class="form-group">
	    <label class="col-lg-2 control-label"><span style="margin-right:10px; color:red;">*</span>团购</label>
	    <div class="col-lg-9 group">
	        <c:if test="${goods.groupbuying==1 }"><label>否</label></c:if>
			<c:if test="${goods.groupbuying==2 }"><label>是</label><br>
				<label>团购价格:${goods.gbprice }</label><br>
				<label>团购库存:${goods.countnum }</label><br>
				<label>团购人数:${goods.gbperson }</label><br>
					<c:if test="${goods.gbmethod==1}"><label>团购方式:普通</label><br></c:if>
					<c:if test="${goods.gbmethod==2}"><label>团购方式:免单</label><br>
						<label>付费人数:${goods.gbpayperson }</label><br>
						<label>免单人数:${goods.gbfreeperson }</label><br>
					</c:if>
				<label>团购开始时间:${goods.gbbegintime }</label><br>
				<label>团购结束时间:${goods.gbendtime }</label>
			</c:if>
		</div>
	</div>
	<!-- 是否赠送优惠 -->
	<div class="form-group">
   	 <label class="col-lg-2 control-label"><span style="margin-right:10px; color:red;">*</span>赠送优惠</label>
	    <div class="col-lg-9 zactivity" >
	    	<c:if test="${goods.zsactivity==1 }"><label>否</label></c:if>
			<c:if test="${goods.zsactivity==2 }"><label>是</label><br>
				<c:if test="${goods.zspoint==1 }">
					<label>积分值${goods.zspointnum }</label><br>
				</c:if>
				<c:if test="${goods.zsdedu==1 }">
					<label>抵扣券${goods.zsdedunum }</label><br>
				</c:if>
				<c:if test="${goods.zscoupon==1 }">
					<label>优惠券${goods.zscouponnum }</label><br>
				</c:if>
			</c:if>
   		</div>
   	</div> 
	<div class="form-group">
	    <label class="col-lg-2 control-label">适用门店</label>
	    <div class="col-lg-9">
    		 <span>已选门店(<span id="chooseNum" >${goods.countStore }</span>)</span>
	    </div>
	     <div class="col-lg-9">
	     	<table id="tablea" style="width: 100%" border="1px;">
     			<tr>
     				<th  width="15%" style="font-size: 14px;text-align: center;">门店名称</th>
     				<th  width="20%" style="font-size: 14px;text-align: center;">门店地址</th>
     				<th  width="10%" style="font-size: 14px;text-align: center;">门店电话</th>
     			</tr>
     			<c:if test="${fn:length(store) > 0}">
					<c:forEach var="ad" items="${store}" varStatus="s">
					<tr>
						 <td style="font-size: 14px;text-align: center;">${ad.title }</td>
						 <td style="font-size: 14px;text-align: center;">${ad.address }</td>
						 <td style="font-size: 14px;text-align: center;">${ad.tel }</td>
					<tr>
					</c:forEach>
				</c:if>
	     	</table>
	    </div>
	</div>--%>
	
	<!-- ******************************************************************************** -->

	<div class="form-group">
		<label class=" control-label" style="margin-left: 50px;font-size: 18px;">商品规格设置</label>
	</div>
		<hr style=" height:2px;border:none;border-top:2px solid black;" />

   <div class="form-group">
    	<label class="col-lg-2 control-label"></label>
	     <div class="col-lg-9">
	     	<table id="tablespec" style="width: 100%" border="1">
     			<tr>
     				<th style=" width:5%;font-size: 14px;text-align: center;"><input type="checkbox" name="specChecks" hidden="hidden"/>选择</th>
     				<th style=" width:15%;font-size: 14px;text-align: center;">规格名称</th>
     				<th style=" width:15%;font-size: 14px;text-align: center;">规格数量</th>
     				<th style=" width:15%;font-size: 14px;text-align: center;">门市价/元</th>
     				<th style=" width:15%;font-size: 14px;text-align: center;">库存数量</th>	
     				<!-- <th style=" width:15%;font-size: 14px;text-align: center;">货币</th> -->
     				<th style=" width:15%;font-size: 14px;text-align: center;">优惠类型</th>
     				<th style=" width:20%;font-size: 14px;text-align: center;">货币/优惠类型</th>
     			</tr>
				<c:if test="${fn:length(goodSpec) > 0}">
					<c:forEach var="adk" items="${goodSpec}" varStatus="s">
						<tr>
							<td style="font-size: 14px;text-align: center;">
								<input type="checkbox" id="ids" checked="checked" name="specChecks" value="${adk.id }"/>
							</td>
							<td  style="font-size: 14px;text-align: center;">
								<input type="text" id="KspecName" hidden="hidden" name="KspecName"  value="${adk.specTitle }"/>
								${adk.specTitle }
							</td>
							<td style="font-size: 14px;text-align: center;">
								<input type="text" id="KspecNum" hidden="hidden" name="KspecNum" value="${adk.specNum }"/>
								${adk.specNum }
							</td>
							<td style="font-size: 14px;text-align: center;">
								<input type="text" id="KmarketPrice" hidden="hidden" name="KmarketPrice" value="${adk.marketPrice }"/>
								${adk.marketPrice }
							</td>
							<td style="font-size: 14px;text-align: center;">
								<input type="text" id="Kstock" hidden="hidden" name="Kstock" value="${adk.stockNum }"/>
								${adk.stockNum }
							</td>
							<%-- <td style="font-size: 14px;text-align: center;">
								<input type="text" id="Ksellerprice" hidden="hidden" name="Ksellerprice" value="${adk.sellerPrice }"/>
								${adk.sellerPrice }
							</td> --%>
							<!-- 判断是否为单货币支付 -->
							
							<%-- <td style="font-size: 14px;text-align: center;">
							<input type="text" id="Kmultipay" hidden="hidden" name="Kmultipay" value="${adk.multipay}"/>
							<input type="text" id=Ksellerprice hidden="hidden" name="Ksellerprice" value="${adk.sellerPrice }"/>
								<c:if test="${adk.multipay != 1}">
									无
								</c:if>
								<c:if test="${adk.multipay == 1}" >
									${adk.sellerPrice }
								</c:if>
							</td> --%>
							<td style="font-size: 14px;text-align: center;">
								<input type="text" id="Kmultipay" hidden="hidden" name="Kmultipay" value="${adk.multipay}"/>
								<input type="text" id="Koppoint" hidden="hidden" name="Koppoint" value="${adk.opPoint}"/>
								<input type="text" id="Kopdedu" hidden="hidden" name="Kopdedu" value="${adk.opDedu}"/>
								<input type="text" id="Kopcoupon" hidden="hidden" name="Kopcoupon" value="${adk.opCoupon}"/>
								<c:if test="${adk.multipay != 2}">
									无
								</c:if>
								<c:if test="${adk.multipay == 2 }" >
									<c:if test="${adk.opPoint != 0 }" >
										积分:${adk.opPoint}
									</c:if>
									<c:if test="${adk.opDedu != 0 }" >
										;折扣券:${adk.opDedu}
									</c:if>
									<c:if test="${adk.opCoupon != 0 }" >
										;优惠券:${adk.opCoupon}
									</c:if>
								</c:if>
							</td>
							<!-- 判断组合支付的值 -->
							<td style="font-size: 14px;text-align: center;">
								<input type="text" id="Kmultipay" hidden="hidden" name="Kmultipay" value="${adk.multipay}"/>
								<input type="text" id="Kmuchsellerprice" hidden="hidden" name="Kmuchsellerprice" value="${adk.muchsellerPrice}"/>
								<input type="text" id="Kmppoint" hidden="hidden" name="Kmppoint" value="${adk.mpPoint}"/>
								<input type="text" id="Kmpdedu" hidden="hidden" name="Kmpdedu" value="${adk.mpDedu}"/>
								<input type="text" id="Kmpcoupon" hidden="hidden" name="Kmpcoupon" value="${adk.mpCoupon}"/>
								
								<c:if test="${adk.multipay != 3}">
									无
								</c:if>
								<c:if test="${adk.multipay == 3 }" >
									${adk.muchsellerPrice}/
									<c:if test="${adk.mpPoint != 0 }" >
										积分:${adk.mpPoint}
									</c:if>
									<c:if test="${adk.mpDedu != 0 }" >
										;折扣券:${adk.mpDedu}
									</c:if>
									<c:if test="${adk.mpCoupon != 0 }" >
										;优惠券:${adk.mpCoupon}
									</c:if>
								</c:if>
							</td>
	     				</tr>
					</c:forEach>
				</c:if>
	     	</table>
	    </div>
	</div>

<div style="display:none">
<!-- ================================================销售信息================================================== -->
	<div class="form-group">
		<label class=" control-label" style="margin-left: 50px;font-size: 18px;">销售信息</label>
	</div>
		<hr style=" height:2px;border:none;border-top:2px solid black;" />
		<label class="col-sm-2 control-label">详情</label>
   <div class="form-group">
    	<label class="col-lg-2 control-label"></label>
	     <div class="col-lg-9">
	     	<table id="tablesale" style="width: 100%" border="1">
     			<tr>
     				<th style=" width:5%;font-size: 14px;text-align: center;"><input type="checkbox" name="saleChecks" hidden="hidden"/>启用</th>
     				<th style=" width:35%;font-size: 14px;text-align: center;">参数</th>
     				<th style=" width:15%;font-size: 14px;text-align: center;">价格</th>
     				<th style=" width:10%;font-size: 14px;text-align: center;">库存</th>
     				<th style=" width:15%;font-size: 14px;text-align: center;">内部码</th>	
     				<th style=" width:20%;font-size: 14px;text-align: center;">国际码</th>
     			</tr>
				<c:if test="${fn:length(goodsSales) > 0}">
					<c:forEach items="${goodsSales}" var="goodsSale" varStatus="s">
						<tr>
							<td style="font-size: 12px;text-align: center;">
								<input type="checkbox" id="saleIds" checked="checked" name="saleIds" value="${goodsSale.id}"/>
							</td>
							<td  style="font-size: 12px;text-align: center;">
								<input type="text" id="KpropvalnameArr" name="KpropvalnameArr"  hidden="hidden" value="${goodsSale.goodsSpec}"/>
								<!-- 隐藏域用于传值 -->
								<input type="text" id="Ktemplateid" name="Ktemplateid"  hidden="hidden" value="${goodsSale.templateid}"/>
								<input type="text" id="Ktitle" name="Ktitle"  hidden="hidden" value="${goodsSale.title}"/>
								${goodsSale.goodsSpec}
							</td>
							<td style="font-size: 12px;text-align: center;">
								<input type="text" id="KskuPrice" name="KskuPrice" hidden="hidden" value="${goodsSale.saleprice}"/>
								${goodsSale.saleprice}
							</td>
							<td style="font-size: 12px;text-align: center;">
								<input type="text" id="KskuStock" name="KskuStock" hidden="hidden" value="${goodsSale.salestock}"/>
								${goodsSale.salestock}
							</td>
							<td style="font-size: 12px;text-align: center;">
								<input type="text" id="KskuCoding" name="KskuCoding" hidden="hidden" value="${goodsSale.coding}"/>
								${goodsSale.coding}
							</td>
							<td style="font-size: 12px;text-align: center;">
								<input type="text" id="KskuBarcode" name="KskuBarcode" hidden="hidden" value="${goodsSale.barcode}"/>
								${goodsSale.barcode}
							</td>
							
	     				</tr>
					</c:forEach>
				</c:if>
	     	</table>
	    </div>
	</div>
	<label class=" col-lg-2 control-label">商品扩展信息</label>
	<div class="col-lg-9" style="margin-left: 136px">
     		<table id="" style="width: 100%" border="1">
   			<tr>
   				<th  width="15%" style="font-size: 14px;text-align: center;">属性名称</th>
   				<th  width="15%" style="font-size: 14px;text-align: center;">属性值</th>
     		<c:if test="${fn:length(saleItems) > 0}">
				<c:forEach items="${saleItems}" var="saleItem" varStatus="s">
					<tr>
						 <td style="font-size: 14px;text-align: center;">${saleItem.iname }</td>
						 <td style="font-size: 14px;text-align: center;">${saleItem.idetail }</td>
					</tr>
				</c:forEach>
			</c:if>
   			</tr>
   		</table>
   	</div>
   	<!-- ====================================================拓客信息====================================================== -->

	<div class="form-group" id="general2">
	    <label class="col-lg-2 control-label">是否分销</label>
	    <div class="col-lg-9">
	   		<select name="openRebate" id="openRebate" class="form-control" required disabled="disabled" data-width="120">
				<option value="${toker.state}" <c:if test="${toker.state==0}"></c:if>>关闭分销</option>
				<option value="${toker.state}" <c:if test="${toker.state==1}"></c:if>>开启分销</option>	
        	</select>
	    	<%-- <select id="openRebate" name="openRebate" class="selectpicker form-control" required data-width="120" >
	    		<option id="op2"  <c:if test="${toker.state==0 }"> selected="selected" </c:if> value="0" disabled="disabled">关闭分销</option>
	    		<option id="op1"  <c:if test="${toker.state==1 }"> selected="selected" </c:if> value="1" disabled="disabled">开启分销</option>
	    	</select> --%>
	    	<input type="hidden" id="state" name="state"   value="1" >
	    </div>
	</div>	
	<div class="form-group" id="rebateLv1"   <c:if test="${toker.state==null||toker.state==0}">style="display:none;"</c:if> >
	    <label class="col-lg-2 control-label">一级返利</label>
	    <div class="col-lg-9 toker">
        	<ul>
				<li>
					<span>积分值 </span><input type="number" name="onePoint" id="onePoint" size="12" disabled="disabled" placeholder="请输入数字" class=" width100" value="${toker.onePoint}" />
					<span>抵扣券 </span><input type="number" name="oneDetion" id="oneDetion" size="12" disabled="disabled" placeholder="请输入数字"  class=" width100" value="${toker.oneDetion}"/>
					<span>优惠券 </span><input type="number" name="oneDcount" id="oneDcount" size="12" disabled="disabled" placeholder="请输入数字"  class=" width100" value="${toker.oneDcount}"/>
				</li>
			</ul>
	    </div>
	</div>

	<div class="form-group" id="rebateLv2" <c:if test="${toker.state==null||toker.state==0}">style="display:none;"</c:if> >
	    <label class="col-lg-2 control-label">二级返利</label>
	    <div class="col-lg-9 toker">
			<ul>
				<li>
					<span>积分值 </span><input type="number" name="twoPoint" id="twoPoint" size="12" disabled="disabled" class=" width100"  placeholder="请输入数字" value="${toker.twoPoint}" />
					<span>抵扣券 </span><input type="number" name="twoDetion" id="twoDetion" size="12" disabled="disabled" placeholder="请输入数字"  class=" width100" value="${toker.twoDetion}"/>
					<span>优惠券 </span><input type="number" name="twoDcount" id="twoDcount" size="12" disabled="disabled" placeholder="请输入数字"  class=" width100" value="${toker.twoDcount}"/>
				</li>
			</ul>
	    </div>
	</div>
	
		<div class="form-group" id="rebateLv3" <c:if test="${toker.state==null||toker.state==0}">style="display:none;"</c:if> >
	    <label class="col-lg-2 control-label">营业部服务奖励</label>
	    <div class="col-lg-9 toker">
			<ul>
				<li>
					<span>积分值 </span><input type="number" name="threePoint" id="threePoint" size="12" disabled="disabled" class=" width100"  placeholder="请输入数字" value="${toker.threePoint}" />
					<span>抵扣券 </span><input type="number" name="threeDetion" id="threeDetion" size="12" disabled="disabled" placeholder="请输入数字"  class=" width100" value="${toker.threeDetion}"/>
					<span>优惠券 </span><input type="number" name="threeDcount" id="threeDcount" size="12" disabled="disabled" placeholder="请输入数字"  class=" width100" value="${toker.threeDcount}"/>
				</li>
			</ul>
	    </div>
	</div>
	
	<div class="form-group" id="rebateLv4" <c:if test="${toker.state==null||toker.state==0}">style="display:none;"</c:if> >
	    <label class="col-lg-2 control-label">分公司培训奖励</label>
	    <div class="col-lg-9 toker">
			<ul>
				<li>
					<span>积分值 </span><input type="number" name="fourPoint" id="fourPoint" size="12" disabled="disabled" class=" width100"  placeholder="请输入数字" value="${toker.fourPoint}" />
					<span>抵扣券 </span><input type="number" name="fourDetion" id="fourDetion" size="12" disabled="disabled" placeholder="请输入数字"  class=" width100" value="${toker.fourDetion}"/>
					<span>优惠券 </span><input type="number" name="fourDcount" id="fourDcount" size="12" disabled="disabled" placeholder="请输入数字"  class=" width100" value="${toker.fourDcount}"/>
				</li>
			</ul>
	    </div>
	</div>
	
	<div class="form-group" id="rebateLv5" <c:if test="${toker.state==null||toker.state==0}">style="display:none;"</c:if> >
	    <label class="col-lg-2 control-label">公司管理奖励</label>
	    <div class="col-lg-9 toker">
			<ul>
				<li>
					<span>积分值 </span><input type="number" name="fivePoint" id="fivePoint" size="12" disabled="disabled" class=" width100"  placeholder="请输入数字" value="${toker.fivePoint}" />
					<span>抵扣券 </span><input type="number" name="fiveDetion" id="fiveDetion" size="12" disabled="disabled" placeholder="请输入数字"  class=" width100" value="${toker.fiveDetion}"/>
					<span>优惠券 </span><input type="number" name="fiveDcount" id="fiveDcount" size="12" disabled="disabled" placeholder="请输入数字"  class=" width100" value="${toker.fiveDcount}"/>
				</li>
			</ul>
	    </div>
	</div>
	<!-- 宝贝内容***********************start******************************************************** -->
	<div style="display:none;">
	<div class="form-group">
		<label class=" control-label" style="margin-left: 50px;font-size: 18px;">商品内容信息</label>
	</div>
		<hr style=" height:2px;border:none;border-top:2px solid black;" />
	
	    <div class="col-lg-9" style="margin-left: 136px">
	     <label class=" col-lg-2 control-label">套餐内容 </label>
        		<table id="tableb" style="width: 100%" border="1">
	     			<tr>
	     				<th  width="15%" style="font-size: 14px;text-align: center;">名称</th>
	     				<th  width="15%" style="font-size: 14px;text-align: center;">数量</th>
	     				<th  width="15%" style="font-size: 14px;text-align: center;">价值</th>
			     		<c:if test="${fn:length(goodItem) > 0}">
							<c:forEach var="ads" items="${goodItem}" varStatus="s">
								<tr>
									 <td style="font-size: 14px;text-align: center;">${ads.itemname }</td>
									 <td style="font-size: 14px;text-align: center;">${ads.itemnum }</td>
									 <td style="font-size: 14px;text-align: center;">${ads.itemmoney }</td>
								</tr>
							</c:forEach>
						</c:if>
	     			</tr>
	     	</table>
	    </div>
	<div class="form-group"  style="margin-top: 50px">
	  <label class="col-lg-2 control-label">添加可选服务:</label>
	    	
	       <div class="col-lg-9" style="margin-top: 20px" id="keke" >
	        <textarea rows="5" cols="80" onchange="this.value=this.value.substring(0, 200)" onkeydown="this.value=this.value.substring(0, 200)" onkeyup="this.value=this.value.substring(0, 200)" name="kemark" id="" >${goods.kemark}</textarea>
	      </div>
    </div>
	<div class="form-group">
	    <label class="col-lg-2 control-label">售卖时间:</label>
	    <div class="col-lg-9" style="margin-left: 80px">
	       <label class="search-label"></label><input type="text" id="sBeginDate" autocomplete="off" name="sBeginDate" class="form-control search-input width120 "  readonly value="${goods.starttime }" data-format="yyyy-mm-dd" >
		<label class="search-label">至</label><input type="text" id="sEndDate" autocomplete="off" name="sEndDate" class="form-control search-input width120 "  readonly value="${goods.endtime }" data-format="yyyy-mm-dd" >
	    </div>
	</div>
	<div class="form-group">
	    <label class="col-lg-2 control-label">兑换有效期</label>
	    <div class="col-lg-9 tuan">
	    	<c:if test="${goods.goodtype ==1 }">
	    		<label>实物商品   （下单付款后，7个工作日到店兑换有效，如果过期未兑换，购买款项将自动返还给客户）</label>
	    	</c:if>
	    	<c:if test="${goods.goodtype ==2 }">
				<label>服务类商品 </label>
				<div style="margin-right: 30px;" id="tbts">
					<c:if test="${goods.times ==1 }">
						<label>兑换有效期与售卖时间相同</label>
					</c:if>
					<c:if test="${goods.times ==2 }">
						<label>兑换有效期与售卖时间不同 </label>
						<div style="margin-right: 30px;" id="tbtd">
					        <label class="search-label"></label><input type="text" id="beginDate" readonly="readonly" name="beginDate" class="form-control search-input width120" value="${goods.tuanStarttime }" data-format="yyyy-mm-dd" >
							<label class="search-label">至</label><input type="text" id="endDate" readonly="readonly" name="endDate" class="form-control search-input width120" value="${goods.tuanEndtime }" data-format="yyyy-mm-dd" >
		   				</div>
					</c:if>
	   			</div>
	    	</c:if>
	    </div>
	</div>
	<div class="form-group">
	    <label class="col-lg-2 control-label">可用时间</label>
	    <div class="col-lg-9 kysj" >
		    <c:if test="${goods.timetype ==1 }">
		      <label>不限时间 </label>		    </c:if>
		    <c:if test="${goods.timetype ==2 }">
				<label>部分时间可用 </label>
		  		<div style="float: right;" id="bufen">
					<select id="starttime" disabled="disabled"><option value="1" <c:if test="${goods.busetime==1 }">selected</c:if>>周一</option><option value="2" <c:if test="${goods.busetime==2 }">selected</c:if>>周二</option><option value="3" <c:if test="${goods.busetime==3 }">selected</c:if>>周三</option><option value="4" <c:if test="${goods.busetime==4 }">selected</c:if>>周四</option><option value="5" <c:if test="${goods.busetime==5 }">selected</c:if>>周五</option><option value="6" <c:if test="${goods.busetime==6 }">selected</c:if>>周六</option><option value="7" <c:if test="${goods.busetime==7 }">selected</c:if>>周日</option></select>
					 至 <select id="endtime" disabled="disabled"><option value="1" <c:if test="${goods.eusertime==1 }">selected</c:if>>周一</option><option value="2" <c:if test="${goods.eusertime==2 }">selected</c:if>>周二</option><option value="3" <c:if test="${goods.eusertime==3 }">selected</c:if>>周三</option><option value="4" <c:if test="${goods.eusertime==4 }">selected</c:if>>周四</option><option value="5" <c:if test="${goods.eusertime==5 }">selected</c:if>>周五</option><option value="6" <c:if test="${goods.eusertime==6 }">selected</c:if>>周六</option><option value="7" <c:if test="${goods.eusertime==7 }">selected</c:if>>周日</option></select>
				</div>
		    </c:if>
	    </div>
	</div>
	<div class="form-group">
	    <label class="col-lg-2 control-label">单人购买上限</label>
	    <div class="col-lg-9 gmsx">
		    <c:if test="${goods.buytype==1 }">
	        	<label>无上限</label><br>
		    </c:if>
		    <c:if test="${goods.buytype==2 }">
				<label>指定上限  <span>${goods.buycount }次</span></label>
		    </c:if>
	    </div>
	</div>
	<div class="form-group">
	    <label class="col-lg-2 control-label">是否需要预约</label>
	    <div class="col-lg-9 xyyy">
	     	<c:if test="${goods.yutype==1 }">
	        	  <label>否</label>
		    </c:if>
		    <c:if test="${goods.yutype==2 }">
				<label>请您提前  ${goods.yuday }天预约</label>
		    </c:if>
	    </div>
	</div>
	<div class="form-group">
	    <label class="col-lg-2 control-label">适用人数</label>
	    <div class="col-lg-9 syrs">
	    <c:if test="${goods.couper==0 }">
		        <label>不限显示</label>
		    </c:if>
	    	<c:if test="${goods.couper==1 }">
		        <label>不限人数</label>
		    </c:if>
		    <c:if test="${goods.couper==2 }">
				<label>建议人数${goods.jyrs }人</label>
		    </c:if>
		    <c:if test="${goods.couper==3 }">
				<label>限制人数 每张券最多 ${goods.zdrs }人使用</label>
		    </c:if>
	    </div>
	</div>
	<div class="form-group">
	    <label class="col-lg-2 control-label">性别限定</label>
	    <div class="col-lg-9">
	     <c:if test="${goods.shiyongren==0 }">
		        <label>不显示</label>
		    </c:if>
	  	    <c:if test="${goods.shiyongren==1 }">
		        <label>男女通用</label>
		    </c:if>
		    <c:if test="${goods.shiyongren==2 }">
				<label>仅限女宾</label>
		    </c:if>
		    <c:if test="${goods.shiyongren==3 }">
				<label>仅限男宾</label>
		    </c:if>
	    </div>
	</div>
	<div class="form-group">
	    <label class="col-lg-2 control-label">适用规则</label>
	    <div class="col-lg-9">
	     	<c:if test="${goods.regul==1 }">
		        <label>不再与其他优惠同享</label>
		    </c:if>
		    <c:if test="${goods.regul==2 }">
				<label>可与其他优惠同享</label>
		    </c:if>
	    </div>
	</div>
	<div class="form-group">
	    <label class="col-lg-2 control-label">补充内容</label>
	    <div class="col-lg-9">
	        <textarea  readonly="readonly"rows="5" cols="80" name="bucong" readonly="readonly" id="bucong">${goods.content }</textarea>
	    </div>
	</div>
	
	</div>
</div>
	<!-- **************end********************************* --> 
	
	<div class="form-group">
		<label class=" control-label" style="margin-left: 50px;font-size: 18px;">商品详情</label>
	</div>
		<hr style=" height:2px;border:none;border-top:2px solid black;"/>
	

	<div class="form-group">
	    <label class="col-lg-2 control-label">商品简介</label>
	    <div class="col-lg-9">
	        <textarea rows="5" readonly="readonly" cols="80" name="shortinfo" onchange="this.value=this.value.substring(0, 200)" onkeydown="this.value=this.value.substring(0, 200)" onkeyup="this.value=this.value.substring(0, 200)" id="shortinfo">${goods.shortInfo }</textarea>
	    </div>
	</div>
	<div class="form-group">
		<label class="col-sm-2 control-label"><span style="margin-right:10px; color:red;">*</span>详情图片</label>
		<div class="col-sm-10">
		 <input type='button' value='查看详情图片' onclick="toXiang();" style="background-color: #337ab7;width: 100px;height: 32px;color: white;border: 2px solid;background-image: linear-gradient(to bottom,#5bc0de 0,#428bca 100%);"/> 
		</div>
		<div class="col-lg-offset-2 p-t-5 col-lg-9"><span class="text-success"></span></div>
	</div>
	<div class="form-group">
		<label class="col-sm-2 control-label">备注</label>
		<div class="col-sm-10">
	        <textarea rows="5" readonly="readonly" cols="80" name="beizhu" onchange="this.value=this.value.substring(0, 200)" onkeydown="this.value=this.value.substring(0, 200)" onkeyup="this.value=this.value.substring(0, 200)" >${goods.beizhu}</textarea>
		</div>
	</div>
	<div class="form-group">
		<label class="col-sm-2 control-label">客服二维码</label>
		<div class="col-sm-10">
			<img src="${FTP_PATH}${goods.Qrthumb}" alt="" style="width:30%;"/>
		</div>
	</div>
	<input type="hidden" name="thumbOld" value="${goods.thumb}"/>
	<input type="hidden" name="id" value="${goods.id}"/>
	<input type="hidden" name="LunBoNum" value="${goods.LunBoNum}"/>
</form>
</body>
</html>